# -*- coding: utf-8 -*-
# @Date    : 2017-05-03 18:01:30
# @Author  : fancy (fancy@thecover.co)

import tornado.web
import tornado.ioloop
from tornado.options import parse_command_line


class Main(tornado.web.RequestHandler):

    def get(self):
        import pdb; pdb.set_trace()
        self.write('hello')

    def post(self):
        import pdb; pdb.set_trace()
        self.write('hello')


if __name__ == '__main__':
    parse_command_line()
    app = tornado.web.Application([
            (r'/', Main),
        ], debug=True)
    app.listen(8888)
    tornado.ioloop.IOLoop.current().start()
